package com.song.tools.songtest.beans.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 用户角色表设置角色请求体
 * </p>
 *
 * @author song tools
 * @since 2024-07-18
 */
@Data
@Schema(title = "SysRoleUserGrantRolesRequest", description = "用户角色表设置角色请求体")
public class SysRoleUserGrantRolesRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 4425030913830730433L;

    /**
     * 角色ID列表
     */
    @NotEmpty(message = "角色ID列表不能为空")
    @Schema(title = "roleIds", description = "角色ID列表")
    private List<Long> roleIds;
    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @Schema(title = "userId", description = "用户ID")
    private Long userId;
    /**
     * 备注
     */
    @Schema(title = "remark", description = "备注")
    private String remark;
}
